<html>
<head>
<title>Entry Data SKK Mahasiswa Baru</title>
</head>
<body>
<p>ENTRY DATA SKK MAHASISWA BARU</p>
<hr>
<form method="POST" action="add_mahasiswa.php">
<p>NRP Mahasiswa : <input type="text" name="nrp" size="8" maxlength="8"></p>
<p>Kegiatan : <select size="1" name="kegiatan">
<?
include("../connect.php");
$pilih=mysql_select_db("uwika_skk",$conn);
echo "<option></option>";
echo "<option>I. I L M I A H  /  P E N A L A R A N</option>";
echo "<option></option>";
$sqlstr="select kode,nama,date_format(tanggal,'%d %M %Y') from kegiatan where jenis=1 order by nama";
$hasil=mysql_query($sqlstr);
$row = mysql_fetch_row($hasil);
do {
		list($kode,$nama,$tanggal) = $row;
		echo "<option value=\"$kode\">$nama ($tanggal)</option>";
} while ($row=mysql_fetch_row($hasil));
echo "<option></option>";
echo "<option>II. M I N A T  B A K A T</option>";
echo "<option></option>";
$sqlstr="select kode,nama,date_format(tanggal,'%d %M %Y') from kegiatan where jenis=2 order by nama";
$hasil=mysql_query($sqlstr);
$row = mysql_fetch_row($hasil);
do {
		list($kode,$nama,$tanggal) = $row;
		echo "<option value=\"$kode\">$nama ($tanggal)</option>";
} while ($row=mysql_fetch_row($hasil));
echo "<option></option>";
echo "<option>III. L A I N  - L A I N</option>";
echo "<option></option>";
$sqlstr="select kode,nama,date_format(tanggal,'%d %M %Y') from kegiatan where jenis=3 order by nama";
$hasil=mysql_query($sqlstr);
$row = mysql_fetch_row($hasil);
do {
		list($kode,$nama,$tanggal) = $row;
		echo "<option value=\"$kode\">$nama ($tanggal)</option>";
} while ($row=mysql_fetch_row($hasil));
?>
</select>
<br>
<p>Perolehan Poin : <input type="text" name="poin" size="4" value="0"></p>
<p>Keterangan : <input type="text" name="keterangan" size="100" maxlength="100"></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
<BR><I>
*) Apabila terjadi kesalahan di dalam memasukkan data, segera hubungi : Honggianto di line 130. Terimakasih.
</I>
</body>
</html>
<? mysql_close($conn); ?>